/*
 * @Description: 描述信息
 * @Version: 版本号
 * @Author: xuebao
 * @Date: 2023-12-10 17:02:41
 * @LastEditors: xuebao
 * @LastEditTime: 2023-12-10 18:29:03
 */

import './loading.less'

let count = 0
export const showLoading = () => {
  if (count == 0) {
    const loading = document.getElementById('loading')
    loading?.style.setProperty('display', 'flex')
  }
  count++
}

export const hideLoading = () => {
  count--
  if (count == 0) {
    const loading = document.getElementById('loading')
    loading?.style.setProperty('display', 'none')
  }
}
